package com.tang.websocket.v1.session;

/**
 * @author Tang
 * @classname SimpleSessionManagerSupport
 * @description [  ]
 * @date 2022/11/29 23:26
 */
public class SimpleSessionManagerSupport extends SessionManagerSupport {

    @Override
    public void addSession(WebSocketSession session, String key) {
        storeSession.put(key, session);
    }

    @Override
    public void removeSession(String key) {
        storeSession.remove(key);
    }

    @Override
    public WebSocketSession getSession(String key) {
        return storeSession.get(key);
    }
}
